import { defineStore } from "pinia";
import { ref } from "vue";

export const useCountsStore = defineStore("counts", () => {
  const warnCount = ref();
  const msgCount = ref();

  const setWarnCount = async val => {
    warnCount.value = val;
  };

  const setMsgCount = async val => {
    msgCount.value = val;
  };

  return {
    warnCount,
    msgCount,
    setWarnCount,
    setMsgCount
  };
});
